package thread.producer1;

public class Main {

	public static void main(String[] args) throws InterruptedException {
         Store store = new Store();
         for(int i = 0; i < 3; i++){
            Producer p = new Producer(store,"生产者"+i);
            Thread pt = new Thread(p);
            pt.start();
            Customer c = new Customer(store,"消费者"+i);
            Thread ct = new Thread(c);
            ct.start();
         }
         
	}

}
